import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listInfo(query) {
  return request({
    url: '/contract/cancel/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getInfo(id) {
  return request({
    url: '/contract/cancel/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addInfo(data) {
  return request({
    url: '/contract/cancel',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateCancelInfo(data) {
  return request({
    url: '/contract/cancel',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delInfo(id) {
  return request({
    url: '/contract/cancel/' + id,
    method: 'delete'
  })
}



//图片预览
export function loadCancelImage(id,type) {
  return request({
    url: '/contract/cancel/loadImage/'+id+'/'+type ,
    responseType:'blob',
    method: 'get',

  })
}

